package com.yingxin.yxerp.module.report.task.common.job;

import com.yingxin.yx.framework.commons.enums.task.DynamicTaskName;
import com.yingxin.yxerp.module.report.task.common.job.process.JobUniversalHandle;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;

/**
 * 任务执行异常提醒 - 日报表
 * @author yuebao
 * @date 2023-12-13
 */

public class TaskExecuteErrorDailyJob implements Job {

    @Autowired
    private JobUniversalHandle jobUniversalHandle;

    @Async("myTaskExecutor")
    @Override
    public void execute(JobExecutionContext context) {
        jobUniversalHandle.handle( context, DynamicTaskName.TEERBB );
    }

}
